package com.demo.house.dao;

import com.demo.house.entity.User;
import com.demo.house.vo.RequestVo.LoginVo;
import com.demo.house.vo.request.RequestMessageVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserDao {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User user);

    int updateByPrimaryKey(User user);

//    User selectNameAndTelephone(Integer id);



/*   //用户注册
    boolean addOne(RequestUserVo vo);

    //注册时的重名检测
    User checkReg(@Param("username")String username);*/

    //修改密码
    User modifyPwd(@Param("password")String password);

    @Select("SELECT * FROM USER username where username=#{username}")
    User getUsername(@Param("username") String username);

    /*登入*/
    User login(LoginVo loginVo);


}